import { randomSwipe } from "./randomSwipe"


export function pullDownToRefresh(rect: AutoJs.Rect, time: number = 1500) {
    return randomSwipe(rect.centerX() - 50, rect.top, rect.centerX() + 50, rect.bottom, time)
}

export function swipeUp(rect: AutoJs.Rect, time: number = 1500) {
    return randomSwipe(rect.centerX() - 100, rect.bottom, rect.centerX() + 50, rect.top, time)
}